package com.zhou.JavaAndroidFirm.constract;

import com.zhou.JavaAndroidFirm.base.BaseModel;
import com.zhou.JavaAndroidFirm.base.BasePresenter;
import com.zhou.JavaAndroidFirm.bean.NewsDetail;

import rx.Observable;

/**
 * @author Administrator
 * @date 2018/8/20 0020
 * @des
 */
public interface NewsDetailContract {

    interface View extends BaseView {
        //返回获取的新闻
        void returnOneNewsData(NewsDetail newsDetail);
    }

    interface Model extends BaseModel {
        Observable<NewsDetail> getOneNewsData(String postId);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getOneNewsData(String postId);
    }
}
